<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./css/tab.css">
</head>

<body>
    <div class="wrap">
        <div class="tab J_tab">
            <div class="item current">选项1</div>
            <div class="item">选项2</div>
            <div class="item">选项3</div>
        </div>
        <div class="page J_page">
            <div class="page-wrap">
                <div class="item active">
                    页面1
                </div>
                <div class="item">
                    页面2
                </div>
                <div class="item">
                    页面3
                </div>
            </div>
        </div>
    </div>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.js"></script>
    <script src="./js/tab.js"></script>
    <script type="text/javascript">
        new Tab("slide");
    </script>
</body>

</html>